[<div class="send">(#ENV**{message_ok})</div>]					
[<div class="error">(#ENV**{message_erreur})</div>]
    
<?php 
    //TODO: Передавать количество товаров из charger-функции, а тут просто проверять
    include_spip('classes/alohacart');
    $cart = new AlohaCart();
    if ($cart->CountProducts() > 0) { ?>
<form action="#ENV{action}" method="post" name="alohacart_order_form" class="google-analytics-form" >	
	<fieldset>
	#ACTION_FORMULAIRE{#ENV{action}}
	<input type="text" name="url" style="display: none;" value="" />
	<input type="hidden" name="lang" value="#LANG" />
		<div>
			<label for="name"><:alohacart:name:></label>
			<input type="text" name="name" id="name" value="#ENV*{name}"/>
            [<span class='erreur'>(#ENV**{erreurs}|table_valeur{name})</span>]
		</div>
		<div>
			<label for="tel"><:alohacart:phone:></label>
			<input type="text" name="tel" id="tel"  value="#ENV*{tel}"/>
            [<span class='erreur'>(#ENV**{erreurs}|table_valeur{tel})</span>]
		</div>
		<div>
			<label for="mail"><:alohacart:email:></label>
			<input type="text" name="mail" id="mail"  value="#ENV*{mail}"/>
            [<span class='erreur'>(#ENV**{erreurs}|table_valeur{mail})</span>]
		</div>
        <div>
            <label for="city"><:alohacart:city:></label>
			<input type="text" name="city" id="city"  value="#ENV*{city}"/>
            [<span class='erreur'>(#ENV**{erreurs}|table_valeur{city})</span>]
        </div>
        <div>
            <label for="address"><:alohacart:address:></label>
			<input type="text" name="address" id="address"  value="#ENV*{address}"/>
            [<span class='erreur'>(#ENV**{erreurs}|table_valeur{address})</span>]
        </div>
        <div>
            <label for="order_comments"><:alohacart:order_comments:></label>
            <textarea name="order_comments" id="order_comments">#ENV*{order_comments}</textarea>			
            [<span class='erreur'>(#ENV**{erreurs}|table_valeur{order_comments})</span>]
        </div>
		<input type="submit" value="<:alohacart:checkout:>" class="submit"/>
	</fieldset>
</form>
<?php } else { ?>
    [(#ENV{message_ok}|?{'',
        [(#ENV{message_erreur}|?{'',
            <:alohacart:not_enough_products:>    
        })] 
    })] 
<?php } ?>